package com.icss.service;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.icss.dao.MenuDao;
import com.icss.dao.redis.RedisStringDao;
import com.icss.entity.Menu;

@Service
public class DishService {
@Autowired
private MenuDao dao;
@Autowired
private RedisStringDao rDao;
public Menu menubuffer(Integer DishId){
	Menu menu=dao.showhistory(DishId);
	rDao.set("menu"+menu.getDishId(), menu.getDishPicture());
	return menu;	
}
}
